#ifndef NODE_H
#define NODE_H

#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>

using namespace std;

class Node
{
private:
	char description[30];
	char datatype;
	char value_s[30];
	int value_i;
	double value_r;
	char value_c;

public:
	Node();
	char* getValueS(){return value_s;}
	char getValueC(){return value_c;}
	int getValueI(){return value_i;}
	double getValueR(){return value_r;}
	char* getDescription(){return description;}
	char getDataType(){return datatype;}
	void setValue(char c){value_c = c; used = true;}
	void setValue(char* s){for(int i=0;i<30;i++){value_s[i] = s[i];} used = true;}
	void setValue(int i){value_i = i; used = true;}
	void setValue(double r){value_r = r; used = true;}
	void setDescription(char *d){for(int i=0;i<30;i++){description[i] = d[i];} used = true;}
	void setDataType(char dt){datatype = dt; used = true;}
	bool used;
};

#endif
